package com.blogs.web.game;

/**
 * @Author: xiaokai
 * @Description: 创建一个游戏抽象工厂属性值
 * @Date: 2019/8/18
 * @Version: 1.0
 */
public abstract class Game {

    protected int attack;// 攻击力
    protected int defence;// 防御力
    protected int health;// 血量
    protected int x;// 横坐标
    protected int y;// 纵坐标


    public Game(int attack, int defence, int health, int x, int y) {
        this.attack = attack;
        this.defence = defence;
        this.health = health;
        this.x = x;
        this.y = y;
    }

    public abstract void show();

    public abstract void attack();

}
